import type { AddMoistureInfoReq, AddMoistureInfoRes, MoistureStatisticReq, MoistureStatisticRes } from './types';
import { post } from '@/utils/request';

// 增加含水率
export const addMoistureInfo = (data: AddMoistureInfoReq) => post<AddMoistureInfoRes>('/api/data-server/service/ranch/water/detection', { data });

// 获取水分检测数据列表
export const getMoisturePageList = (data: AddMoistureInfoReq) =>
  post<AddMoistureInfoRes>('/api/data-server/service/ranch/water/detection/page', { data });

// 获取牧场水份含量检测统计数据
export const getMoistureStatistic = (data: MoistureStatisticReq) =>
  post<MoistureStatisticRes>('/api/data-server/service/ranch/water/detection/statistics', { data });
